/*
package com.companyName.sample.common.util;

import com.companyName.sample.common.constant.CommConstants;
import com.xiaoyi.utilities.httpclient.IHttpClient;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class FDSUtil {

    @Autowired
    static IHttpClient httpClient;

    public static String getThumbObject(String urlId) {
        return String.format("%s_thumb.jpg", urlId);
    }

    public static String getMediaObject(String urlId) {
        return String.format("%s_media.mp4", urlId);
    }
    
    public static String getThumbObject(int mediaType, String urlId) {
		return String.format("%s_thumb.jpg", urlId);
	}
    
    public static String getMediaObject(int fdsType, String urlId) {
		String ext = (fdsType == CommConstants.MediaType.Video ? ".mp4" : ".jpg");
		String timestamp = DateUtil.nowDate("HHmmssSSS");// DateTime.now().toString("HHmmssSSS");
		//20160324/10225/2_023217527_media.jpg
		urlId = String.format("%s/%d/%d_%s", DateUtil.toDateString(new Date(), "yyyyMMdd"), 1, fdsType, timestamp);
		return String.format("%s_media%s", urlId, ext);
	}
	
    public static void getIqiyiMediaUrl(String fileId) {
        Map<String, Object> reslt = new HashMap<String, Object>();
        String fileUrl = "?access_token=";
        String result = httpClient.get(fileUrl);
        JSONObject grantObj = new JSONObject(result);
        String code = grantObj.optString("code");
    }

}
*/
